/*
	Membership of one object to one class.
*/

class MembershipOC{

 
    protected String name_class;
    protected float membership_value; //sum of all membership values
    protected int times; //times that an object has been classified in this class.
    
    //the absolute membership value es calculated as follow: membership_value/times;
    //Tracking is taken into account in the classification process, for this reason, the membership value
    //is calculated as the medium of all membership values along the time.

    public MembershipOC(String n){
	this.name_class = n;
	membership_value = 0;
	times = 0;
    }
    
    
    
    public String getNameClass(){return this.name_class;}
    public float getMembershipValue(){return this.membership_value;}
    public int getTimes(){return this.times;}
    
    public void sumMembershipValue(float v){this.membership_value += v;}
    public void incrementTimes(){this.times++;}

	

}//end Membership
